package be.bonamis.umpire.domain.notary;

import java.io.Serializable;

public class BaremaSliceId implements Serializable {

	private static final long serialVersionUID = 1L;
	private int barema;
	private int slice;

	public int getBarema() {
		return barema;
	}

	public void setBarema(int barema) {
		this.barema = barema;
	}

	public int getSlice() {
		return slice;
	}

	public void setSlice(int slice) {
		this.slice = slice;
	}
	@Override
    public int hashCode() {
        return barema + slice;
    }
 
    @Override
    public boolean equals(Object obj) {
        if(obj instanceof BaremaSliceId){
        	BaremaSliceId baremaSliceId = (BaremaSliceId) obj;
            return baremaSliceId.barema == barema && baremaSliceId.slice == slice;
        }
 
        return false;
    }

}
